package com.aaa.controller;


import com.aaa.entity.F_returns;
import com.aaa.entity.Fcart;
import com.aaa.entity.ResultMsg;
import com.aaa.service.impl.FReturnsServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("frturns")
public class FReturnsController {
    @Resource
    FReturnsServiceImpl returnsService;

    @RequestMapping("dd")
    public ResultMsg add(F_returns returns){
        return ResultMsg.success(returnsService.add(returns));
    }

    @RequestMapping("up")
    public ResultMsg add(Integer state,Integer id){
        return ResultMsg.success(returnsService.up(state,id));
    }
}
